package com.and9.mchen.mcmusic.struts.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.and9.mchen.mcmusic.struts.action.base.BaseAction;

@ParentPackage(value="base_struts")
@Namespace(value="/user")
@Results({
	@Result(name="login", location="/WEB-INF/user/login.jsp")}
)
public class UserAction extends BaseAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7518390805241253780L;


	@Action(value="toLogin")
	public String toLogin(){
		return LOGIN;
	}
	
	@Action(value="userLogin")
	public String verifyUsernamePassword() throws Exception{
		Thread.sleep(8000L);
		
		return LOGIN;
	}

	
	
}
